package org.jeecg.modules.demo.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CQuotationInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 工程报价单详情
 * @Author: jeecg-boot
 * @Date:   2025-08-28
 * @Version: V1.0
 */
public interface CQuotationInfoMapper extends BaseMapper<CQuotationInfo> {

    @Delete("delete from c_quotation_info where quotation_id =#{quotationId}")
    void deleteByQuotation(@Param("quotationId") String quotationId);

    @Select("select * from c_quotation_info where quotation_id =#{quotationId}")
    List<CQuotationInfo> details(@Param("quotationId") String quotationId);


}
